package com.gen.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zzx.dao.IPassTableDao;
import com.zzx.entity.PassTable;

@Service
public class PassTableServiceImpl implements IPassTableService{
	@Autowired
	private IPassTableDao passTableDao;

	@Override
	public int insertPassword(PassTable passTable) {
		return passTableDao.insertPassword(passTable);
	}

	@Override
	public int deleteFromPasswordByUid(Integer uid) {
		return passTableDao.deleteFromPasswordByUid(uid);
	}

	@Override
	public int updatePassword(PassTable passTable) {
		return passTableDao.updatePassword(passTable);
	}

	@Override
	public List<PassTable> selectInfoFromPasswordByPage(Integer startIndex, Integer pageSize) {
		return passTableDao.selectInfoFromPasswordByPage(startIndex, pageSize);
	}

	@Override
	public PassTable selectPasswordByUid(Integer uid) {
		return passTableDao.selectPasswordByUid(uid);
	}

	@Override
	public String selectUserSaltByUid(Integer uid) {
		return passTableDao.selectUserSaltByUid(uid);
	}

	@Override
	public Integer selectStatusByUidAndPassword(int uid, String encodedpass) {
		return passTableDao.selectStatusByUidAndPassword(uid, encodedpass);
	}

}
